package com.wutianyi.datastore;

import org.apache.commons.lang.StringUtils;

/**
 * @author hanjiewu
 * 
 */
public class Key
{

    private String kind;
    private int id;
    private String key;

    public Key(String kind)
    {
        this(kind, null);
    }

    public Key(String kind, String key)
    {
        if (StringUtils.isBlank(kind))
        {
            throw new NullPointerException("The kind must not null!");
        }
        this.kind = kind;
        this.key = key;
    }

    public String getKind()
    {
        return kind;
    }

    public void setKind(String kind)
    {
        this.kind = kind;
    }

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public String getKey()
    {
        return key;
    }

    public void setKey(String key)
    {
        this.key = key;
    }

}
